<% if is_vassal? @character  %>
	<% if in_court? @character  %>
		<h3>Appoint as Official</h3>
		<% form_for @new_title do |f| %>
			<%=f.hidden_field :character_id %>
			<input type="hidden" name="title[category]" value="3"/>
			<p>Position:
			<select name="title[sub_category]">
				<%=options_title_subcategories 3 %>
			</select>
			<%=f.submit 'Appoint' %>
		<% end %>
	<% end %>
	<% titles = player_character.giveable_titles 
	if titles and titles.size > 0
	%>
	<h3>Give Title</h3>
	<ul>
		<% for title in titles %>
			<li><%=link_to title.name, {:controller => 'titles', :action => 'update', :id => title.id, :character_id => @character.id}, :method => 'put' %></li>
		<% end %>
	</ul>
	<% end %>
<% end %>